package com.my.commons.network;

public class DisconnectionTask implements Runnable{
	/**
     * Connection that onDisconnect() method will be executed by <code>DisconnectionThreadPool</code>
     *
     * @see com.my.commons.network.DisconnectionThreadPool
     */
	private AConnection connection;
	
	/**
     * Construct <code>DisconnectionTask</code>
     *
     * @param connection
     */
	public DisconnectionTask(AConnection connection)
	{
		this.connection = connection;
	}
	
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		connection.onDisconnect();
	}

}
